package com.smarttiger.zero.admin.entity;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "interface")
public class InterfaceModel extends BaseEntity {


    @Column(name = "name",length = 100)
    private String name;

    @Column(name = "protocol",length = 20)
    private String protocol;

    @Column(name = "isAlive",length = 20)
    private String isAlive;

    @Column(name="note")
    private String note;

    @Column(name = "example",length = 2000)
    private String example;

    @Column(name = "code",length = 100)
    private String code;

    @Column(name = "returnType",length = 100)
    private String returnType;

    @Column(name = "serviceType",length = 100)
    private String serviceType;

    @Column(name = "wsStatus",length = 10)
    private String wsStatus;

    @Transient
    private List<LogicModel> logicModels;

    @Transient
    private List<InterfaceArgsModel> argsModels;

    @Transient
    private List<UsersGroupModel> usersGroupModels;

    @Transient
    private List<UsersModel> blacklistModels;

    @Transient
    private List<UsersModel> whitelistModels;


    public List<UsersGroupModel> getUsersGroupModels() {
        return usersGroupModels;
    }

    public void setUsersGroupModels(List<UsersGroupModel> usersGroupModels) {
        this.usersGroupModels = usersGroupModels;
    }

    public List<UsersModel> getBlacklistModels() {
        return blacklistModels;
    }

    public void setBlacklistModels(List<UsersModel> blacklistModels) {
        this.blacklistModels = blacklistModels;
    }

    public List<UsersModel> getWhitelistModels() {
        return whitelistModels;
    }

    public void setWhitelistModels(List<UsersModel> whitelistModels) {
        this.whitelistModels = whitelistModels;
    }

    public List<InterfaceArgsModel> getArgsModels() {
        return argsModels;
    }

    public void setArgsModels(List<InterfaceArgsModel> argsModels) {
        this.argsModels = argsModels;
    }

    public List<LogicModel> getLogicModels() {
        return logicModels;
    }

    public void setLogicModels(List<LogicModel> logicModels) {
        this.logicModels = logicModels;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getIsAlive() {
        return isAlive;
    }

    public void setIsAlive(String isAlive) {
        this.isAlive = isAlive;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public String getReturnType() {
        return returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getWsStatus() {
        return wsStatus;
    }

    public void setWsStatus(String wsStatus) {
        this.wsStatus = wsStatus;
    }
}
